package com.logistics.modules.transportationManagement.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.logistics.common.utils.PageUtils;
import com.logistics.common.utils.Query;

import com.logistics.modules.transportationManagement.dao.MoveplandetailsDao;
import com.logistics.modules.transportationManagement.entity.MoveplandetailsEntity;
import com.logistics.modules.transportationManagement.service.MoveplandetailsService;


@Service("moveplandetailsService")
public class MoveplandetailsServiceImpl extends ServiceImpl<MoveplandetailsDao, MoveplandetailsEntity> implements MoveplandetailsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MoveplandetailsEntity> page = this.page(
                new Query<MoveplandetailsEntity>().getPage(params),
                new QueryWrapper<MoveplandetailsEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public void updateFreightDetailsIdById(Integer freightDetailsId, Integer id) {
        this.baseMapper.updateFreightDetailsIdById(freightDetailsId, id);
    }

}